import React, {PropsWithChildren, useState} from 'react'
import {useLoad} from "@tarojs/taro";
import EditDigitalPage from "../components/EditDigitalPage";

export interface EditDigitalProps extends PropsWithChildren {

}

const EditDigital: React.FC<EditDigitalProps> = ({}) => {
    const [id, setId] = useState<number>()
    useLoad((params) => {
        setId(parseInt(params.id))
    })
    return <>
        <EditDigitalPage id={id}/>
    </>
}

export default EditDigital


